package com.example.service.impl;

import com.example.mapper.CourseTableMapper;
import com.example.pojo.CourseTableEntity;
import com.example.service.CourseTableService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author jiangqiangqiang
 * @description:
 * @date 2022/3/18 3:11 PM
 */
@Service
public class CourseTableServiceImpl implements CourseTableService {

	@Resource
	private CourseTableMapper courseTableMapper;

	@Override
	public int deleteByPrimaryKey(Long id) {
		return courseTableMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(CourseTableEntity record) {
		return courseTableMapper.insert(record);
	}

	@Override
	public int insertSelective(CourseTableEntity record) {
		return courseTableMapper.insertSelective(record);
	}

	@Override
	public CourseTableEntity selectByPrimaryKey(Integer id, String course) {
		return courseTableMapper.selectByPrimaryKey(id, course);
	}

	@Override
	public int updateByPrimaryKeySelective(CourseTableEntity record) {
		return courseTableMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(CourseTableEntity record) {
		return courseTableMapper.updateByPrimaryKey(record);
	}

	@Override
	public int batchInsert(List<CourseTableEntity> list) {
		return courseTableMapper.batchInsert(list);
	}

	@Override
	public List<CourseTableEntity> selectByStuNumber(List<String> stuNumber, Long userId) {
		return courseTableMapper.selectByStuNumber(stuNumber, userId);
	}

	@Override
	public void deleteBatch(List<Long> collect) {
		courseTableMapper.deleteBatch(collect);
	}

}


